package com.gitee.wsl.common.chart.sample.radar.legend

import com.gitee.wsl.common.chart.render.foreground.AbstractChartLegend
import com.gitee.wsl.common.chart.sample.XChart

import com.gitee.wsl.common.chart.sample.radar.model.RadarData

class RadarLegend(mXChart: XChart) : AbstractChartLegend<RadarData>(mXChart) {
    override fun convertArrayKey(dataSet: List<RadarData>) {
        var key = ""
        for (cData in dataSet) {
            key = cData.label
            if (!isDrawKey(key)) continue
            if ("" === key) continue
            mLstKey.add(key)
            mLstColor.add(cData.lineColor)
            mLstDotStyle.add(cData.plotLine.plotDot)
        }
    }
}